Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file upload #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lVeliarl
Copy link

@lVeliarl lVeliarl commented Nov 26, 2022

This commit - c37ee9a - broke regular file upload in most cases. File upload works fine for really small files (around ~50KB from what I noticed), but instantly breaks if the file is a bit larger than that. It looks like the issue is related to the order in which the data is handled in the POST request (as discussed here - #1 (comment)) - in some cases, the "field" event is not triggered, leaving the stream unconsumed (which leaves the client hanging).

The suggested branch includes some formatting changes (second commit) - you can omit them if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants